package com.fortune.service;

import com.fortune.dto.in.paymentMethod.PaymentMethodAddDto;
import com.fortune.dto.in.paymentMethod.PaymentMethodEditDto;
import com.fortune.dto.in.paymentMethod.PaymentMethodListDto;
import com.fortune.vo.paymentMethod.PaymentMethod;

import java.util.List;

public interface PaymentMethodService {
    /**
     * 查询付款方式
     * @param companyId
     * @return
     */
    List<PaymentMethod> queryPaymentMethod(String companyId,PaymentMethodListDto paymentMethodListDto);

    /**
     * 查询付款方式个数
     * @param companyId
     * @param paymentMethodListDto
     * @return
     */
    int queryPaymentMethodCount(String companyId,PaymentMethodListDto paymentMethodListDto);

    /**
     * 添加付款方式
     * @param companyId
     * @param paymentMethodAddDto
     * @return
     */
    int addPaymentMethod(String companyId,PaymentMethodAddDto paymentMethodAddDto);

    /**
     * 编辑付款方式
     * @param companyId
     * @param paymentMethodEditDto
     * @return
     */
    int editPaymentMethod(String companyId,PaymentMethodEditDto paymentMethodEditDto);

    /**
     * 删除付款方式
     * @param companyId
     * @param paymentMethodId
     * @return
     */
    int deletePaymentMethod(String companyId,String paymentMethodId);

    /**
     * 添加时验重
     * @param companyId
     * @param paymentMethodAddDto
     * @return
     */
    int queryAddPaymentMethod(String companyId,PaymentMethodAddDto paymentMethodAddDto);

    /**
     * 编辑时验重
     * @param companyId
     * @param paymentMethodEditDto
     * @return
     */
    int queryEditPaymentMethod(String companyId,PaymentMethodEditDto paymentMethodEditDto);
}
